package org.jeecg.modules.demo.soFyft.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jetbrains.annotations.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: so_fyft
 * @Author: jeecg-boot
 * @Date:   2022-01-18
 * @Version: V1.0
 */
@Data
@TableName("so_fyft")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="so_fyft对象", description="so_fyft")
public class SoFyft implements Serializable, Comparable<SoFyft> {
    private static final long serialVersionUID = 1L;

    /**费用名称*/
    @Excel(name = "费用名称", width = 15)
    @ApiModelProperty(value = "费用名称")
    @Dict(dicCode = "cost_name")
    private java.lang.String fyName;
    /**主键ID*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
    /**分摊金额*/
    @Excel(name = "分摊金额", width = 15)
    @ApiModelProperty(value = "分摊金额")
    private java.math.BigDecimal ftJine;
    /**单据日期*/
    @Excel(name = "单据日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "单据日期")
    private java.util.Date sofDate;
    /**审核人*/
    @Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private java.lang.String shName;
    /**存货名称*/
    @Excel(name = "存货名称", width = 15)
    @ApiModelProperty(value = "存货名称")
    private java.lang.String cinvname;
    /**部门*/
    @Excel(name = "部门", width = 15)
    @ApiModelProperty(value = "部门")
    @Dict(dictTable = "sys_depart",dicCode ="id",dicText="depart_name")
    private java.lang.String dept;
    /**审核时间*/
    @Excel(name = "审核时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private java.util.Date shTime;
    /**合同内部编号*/
    @Excel(name = "合同内部编号", width = 15)
    @ApiModelProperty(value = "合同内部编号")
    private java.lang.String tradecode;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date createTime;
    /**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String staff;
    /**费用单号*/
    @Excel(name = "费用单号", width = 15)
    @ApiModelProperty(value = "费用单号")
    private java.lang.String soFyNo;
    /**审核状态*/
    @Excel(name = "审核状态", width = 15)
    @ApiModelProperty(value = "审核状态")
    private java.lang.Integer shenhe;
    /**删除状态*/
    @Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
    private java.lang.Integer isDelete;
    /**发票单号*/
    @Excel(name = "发票单号", width = 15)
    @ApiModelProperty(value = "发票单号")
    private java.lang.String fpNo;
    /**附件*/
    @Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private java.lang.String fj;
    /**租户id*/
    @Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private java.lang.Integer tenantId;
    /**费用分摊单号*/
    @Excel(name = "费用分摊单号", width = 15)
    @ApiModelProperty(value = "费用分摊单号")
    private java.lang.String ftNo;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**机构编码*/
    @ApiModelProperty(value = "机构编码")
    private String sysOrgCode;


    @Override
    public int compareTo(@NotNull SoFyft o) {
        return o.getCreateTime().compareTo(this.createTime);
    }
}
